package com.boot.security.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 启动类
 * @author Mimg
 */
@EnableTransactionManagement
@MapperScan(basePackages = {"com.boot.security.server.mapper.domain", "com.boot.security.server.mapper", "com.boot.security.server.*.mapper"})
@SpringBootApplication
@EnableScheduling
public class SecurityApplication extends SpringBootServletInitializer {

    public static void main (String[] args) {
        SpringApplication.run(SecurityApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure (SpringApplicationBuilder builder) {
        return builder.sources(SecurityApplication.class);
    }


}
